-- GENERATED SPELL FOR [Forge Construct] --


function spell0_34085(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(64719,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34085', 3345, 1)
end

function spell1_34085(pUnit, Event) --@Flame Emission,n/a--
pUnit:FullCastSpellOnTarget(64720,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34085', 550, 1)
end

function spell2_34085(pUnit, Event) --@Flame Emission,n/a--
pUnit:FullCastSpellOnTarget(64721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34085', 680, 1)
end

function Sorts_34085(pUnit, Event)
local choix_sorts_34085 = math.random(0, 2)
if choix_sorts_34085 == 0 then
pUnit:RegisterEvent('spell0_34085', 1, 1)
end
if choix_sorts_34085 == 1 then
pUnit:RegisterEvent('spell1_34085', 1, 1)
end
if choix_sorts_34085 == 2 then
pUnit:RegisterEvent('spell2_34085', 1, 1)
end
end

function mob34085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34085', math.random(1500, 3000), 1)
end

function mob34085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34085, 1, 'mob34085_Action')
RegisterUnitEvent(34085, 2, 'mob34085_Leave')
RegisterUnitEvent(34085, 3, 'mob34085_Kill')
RegisterUnitEvent(34085, 4, 'mob34085_Die')
